package cn.edu.scau.cmi.wangshuhong.singleton;

public class Chairman {
	private String name; 
	private static Chairman chairman;
	private Chairman(String name){
		this.name=name;
	}
	public static Chairman getInstance(String name){
		if(chairman==null){
			chairman=new Chairman(name);
			return chairman;
		}
			
		else
			return chairman;
	}
	public String getName(){
		return chairman.name;
	}
}
